package com.ruoyi.purchase.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 冷链货品对象 raw_product
 *
 * @author kevinness
 * @date 2025-01-01
 */
public class RawProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Integer id;

    /** 货品类别编码 */
    private String code;

    /** 货品名称 */
    @Excel(name = "货品名称")
    private String name;

    /** 供货商公司名称 */
    private String companyName;

    /** 物品种类 */
    private String goodsCategory;

    /** 货品描述 */
    @Excel(name = "货品描述")
    private String description;

    /** 货品单价 */
    @Excel(name = "货品单价")
    private Double unitPrice;

    /** 货品图片路径 */
    @Excel(name = "货品图片路径")
    private String picture;

    /** 货品规格 */
    private String specification;

    /** 价格信息 */
    @Excel(name = "价格信息")
    private String priceInformation;

    /** 保质期（天） */
    private Long shelfLife;

    /** 冷藏温度要求 */
    private String storageTemperature;

    /** 原产地 */
    private String origin;

    /** 备注 */
    private String remarks;

    public RawProduct(){

    }

    public RawProduct(String name){
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setCompanyName(String companyName)
    {
        this.companyName = companyName;
    }

    public String getCompanyName()
    {
        return companyName;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setGoodsCategory(String goodsCategory)
    {
        this.goodsCategory = goodsCategory;
    }

    public String getGoodsCategory()
    {
        return goodsCategory;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setUnitPrice(Double unitPrice)
    {
        this.unitPrice = unitPrice;
    }

    public Double getUnitPrice()
    {
        return unitPrice;
    }
    public void setPicture(String picture)
    {
        this.picture = picture;
    }

    public String getPicture()
    {
        return picture;
    }
    public void setSpecification(String specification)
    {
        this.specification = specification;
    }

    public String getSpecification()
    {
        return specification;
    }
    public void setPriceInformation(String priceInformation)
    {
        this.priceInformation = priceInformation;
    }

    public String getPriceInformation()
    {
        return priceInformation;
    }
    public void setShelfLife(Long shelfLife)
    {
        this.shelfLife = shelfLife;
    }

    public Long getShelfLife()
    {
        return shelfLife;
    }
    public void setStorageTemperature(String storageTemperature)
    {
        this.storageTemperature = storageTemperature;
    }

    public String getStorageTemperature()
    {
        return storageTemperature;
    }
    public void setOrigin(String origin)
    {
        this.origin = origin;
    }

    public String getOrigin()
    {
        return origin;
    }
    public void setRemarks(String remarks)
    {
        this.remarks = remarks;
    }

    public String getRemarks()
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("code", getCode())
                .append("companyName", getCompanyName())
                .append("name", getName())
                .append("goodsCategory", getGoodsCategory())
                .append("description", getDescription())
                .append("unitPrice", getUnitPrice())
                .append("picture", getPicture())
                .append("specification", getSpecification())
                .append("priceInformation", getPriceInformation())
                .append("shelfLife", getShelfLife())
                .append("storageTemperature", getStorageTemperature())
                .append("origin", getOrigin())
                .append("remarks", getRemarks())
                .toString();
    }
}
